#ifndef CNNINFO_H
#define CNNINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class CnnInfo
{
public:
    CnnInfo();

private:
    int         m_nPartWidth;
    int         m_nPartHeight;
    //QString     m_strONNXmodelPath;
    //QString     m_strPaddleOCRmodelPath;

public:
    //QString     GetONNXModelPath(){return m_strONNXmodelPath;}
    int         GetPartWidth(){return m_nPartWidth;}
    int         GetPartHeight(){return m_nPartHeight;}

    void        SetPartWidth(int value){m_nPartWidth = value;}
    void        SetPartHeight(int value){m_nPartHeight = value;}

    //void        SetONNXModelPath(QString strModelPath){m_strONNXmodelPath = strModelPath;}
    //void        SetPaddleOCRPath(QString strModelPath){m_strPaddleOCRmodelPath = strModelPath;}

public:
    bool WriteXML(QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);
};

#endif // CNNINFO_H
